import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import store from './store'
import './permission' // 路由守卫
import SvgIcon from '@/components/SvgIcon/index.vue'
import 'virtual:svg-icons-register'
import '@/icons' // svg图标
import "@/assets/styles/index.scss"; // global css
import modal from '@/utils/modal';
import { resetForm } from '@/utils/index';
const app = createApp(App)
// 全局方法挂载
app.config.globalProperties.$modal = modal;
app.config.globalProperties.resetForm = resetForm;

app.component('svg-icon', SvgIcon)
app.use(store)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
